package com.king.first.source;

import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment;

public class Flink_Source_File {

    public static void main(String[] args) throws Exception {

        // 1. 创建执行环境
        StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();
        env
                .readTextFile("input")
                .print();

        env.execute();
    }
}
